import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useUserInfoStore = defineStore('userInfo', () => {
  const userInfo = ref();
  const setUserInfo = (newDate) => {
    userInfo.value = newDate;
  };
  const removeUserInfo = () => {
    userInfo.value = '';
  };
  return { userInfo, setUserInfo, removeUserInfo };
}, { persist: true });
